Skip to content

Back Room: tournaments, featured events and a Tournament Champion ribbon - #242

Closed
XxSxmpley wants to merge 12 commits into
ASCoding11:mainfrom
XxSxmpley:tournaments
Closed

XxSxmpley wants to merge 12 commits into
ASCoding11:mainfrom
XxSxmpley:tournaments

Conversation

@XxSxmpley

Copy link
Copy Markdown
Contributor
  • Tournaments panel on the Back Room page, above Playing now.
    • A party leader starts a single-elimination bracket of 4, 8 or 16 in Shell Crackers, Backrooms 1v1–4v4 or Lokop. Others enter with a 5-character code or watch.
    • Byes are seeded and the bracket shrinks to fit. Each match is a private game room.
  • Results:
    • The game reports the result itself: Shell Crackers online free-for-all, and elo.js report() for Backrooms and Lokop.
    • Players can also press I won / I lost. A win needs the opponent's agreement or a 60 s timeout; both claiming a win goes to the organiser.
    • A 3-minute no-show is a forfeit.
  • Featured events: a Captain schedules one (title, game, time, size). Everyone sees a card with a countdown, Sign up and the list of who's signed up. The Captain's browser draws the bracket at the start time, so the Captain needs the Back Room open then.
  • Tournament Champion ribbon for 7 days, drawn by miles.js.
    • It can't be self-granted: miles.js only believes champion records stored under a Captain's own uid (rooms/tn-hall/players/<uid>). Only tournaments a Captain organised give one, and the Captain can revoke it.
    • Featured events work the same way, at rooms/tn-feat/players/<captainUid>.
  • Data: only each browser's own rooms/<room>/players/<uid> node under new tn- rooms. No rule or config changes.
  • Files:
    • New: e63334287a3deaa3/tournament.js.
    • Small shared-file edits: miles.js (Champion block), elo.js (3 lines), shell-crackers/index.html (3 lines), social.js (1 regex), one line each in the root and Back Room index.html, and a What's new entry in news.js. That entry is numbered v1.29.17; you may want to renumber it.
  • Worth knowing:
    • tournament.js has a copy of the existing Firebase config, used only by a localhost test switch. It's not a config change.
    • The test switches (?tncap=1, ?tnid=, window.__tn) do nothing on the live site.
  • Tested with 2–4 browsers on the live database, all test data wiped afterwards:
    • a 4-player party tournament, entering by code, and each way of deciding a result, including a real Lokop final;
    • byes and disputes;
    • the champion ribbon, plus a fake self-written record ignored;
    • a featured event end to end;
    • phone layouts.
  • Not tested: a real played Shell Crackers / Backrooms final, a real Google Captain account, a 16-player bracket, and real phones.

🤖 Generated with Claude Code

XxSxmpley and others added 4 commits November 17, 2026 23:27
…events and the Tournament Champion ribbon

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g now skips tournament rooms

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the panels before placing, featured-event late note, Vice Captains follow captains.js

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

👷 Deploy request for ascoding11 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 48e5818

@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cosmic-dasik-e73c56 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 48e5818

XxSxmpley and others added 6 commits November 18, 2026 13:05
Resolve README.md: keep main's Shell Crackers Rules/Map vote/Gun Game/
streak rewards text and its Lanternhold mention in netsmooth.js, and
re-add this branch's tournament notes (Shell Crackers and elo.js post
backroomMatch to the page for tournament.js).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on so it can't clash), with its Spanish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XxSxmpley

Copy link
Copy Markdown
Contributor Author

Updated: merged with today's main (#275), so there are no conflicts. The What's new entry is now at the top, dated today, with no version number so it can't clash with other open PRs, and it has its Spanish in news-es.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	e63334287a3deaa3/news-es.js
#	e63334287a3deaa3/news.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	README.md
#	e63334287a3deaa3/news-es.js
#	e63334287a3deaa3/news.js
@ASCoding11 ASCoding11 closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants